project(rtspServer C)
cmake_minimum_required(VERSION 2.8)

set(CMAKE_C_FLAGS "-Wl,-rpath,lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_BUILD_TYPE Debug)

INCLUDE_DIRECTORIES(/usr/include/opencv)
INCLUDE_DIRECTORIES(/usr/local/include/opencv/)
INCLUDE_DIRECTORIES(/usr/local/include/)
INCLUDE_DIRECTORIES(logProc)
INCLUDE_DIRECTORIES(.)
INCLUDE_DIRECTORIES(rtspServer)
INCLUDE_DIRECTORIES(rtpSender)
LINK_DIRECTORIES(/usr/lib/arm-linux-gnueabihf/)
LINK_DIRECTORIES(/usr/local/lib/)
LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lib)

#add_subdirectory(imgQuery)
add_subdirectory(rtpSender)
add_subdirectory(rtspServer)
add_subdirectory(logProc)
add_executable(main main.c)
target_link_libraries(main rtspServerLib logProc rtpSender pthread)
